package com.quan;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;


@Slf4j
@SpringBootApplication
@MapperScan("com.quan.**.mapper")
public class GeneratorApplication implements CommandLineRunner, DisposableBean {

    public static void main(String[] args) {
        SpringApplication.run(GeneratorApplication.class, args);
    }

    @Override
    public void run(String... args) {
        log.info("**********************************************");
        log.info("代码生成系统启动.....");
        log.info("**********************************************");
    }

    @Override
    public void destroy() {
        log.info("**********************************************");
        log.info("代码生成系统关闭.....");
        log.info("**********************************************");
    }

    //@RestController
    //class CheckWebController {
    //    @GetMapping
    //    public R check(){
    //        Map<String, Object> map = new HashMap<String, Object>();
    //        map.put("代码生成器访问地址：", "http://localhost:8055/index.html");
    //        map.put("代码生成器云服务访问地址：", "http://localhost:88/generator/index.html");
    //
    //        return R.ok("代码生成系统启动", map);
    //    }
    //}


}
